﻿using System.Collections.Generic;
using SW.DDD.Domain;

namespace SW.DDD.Application.Query
{
    public class Find<TView, TEntity, TKey> : IQuery<TView>
        where TEntity : class, IAggregateRoot<TKey>
        where TKey : notnull
    {
        public Find(TKey id)
        {
            Id = id;
        }

        public TKey Id { get; }

        public IDictionary<string, object> Parameters { get; } = new Dictionary<string, object>();
    }
}
